package com.ruoyi.cloudpc.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.util.Date;

/**
 * 设备对象 cloud_device
 *
 * @author Ten
 * @date 2025-09-20
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ToString
public class CloudDevice extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 设备状态
     */
    @Excel(name = "设备状态")
    private String status;

    /**
     * 删除标志（0代表存在 2代表删除）
     */
    private String delFlag;

    /**
     * 订单id
     */
    @Excel(name = "订单id")
    private Long orderId;

    /**
     * 订单号
     */
    @Excel(name = "订单号")
    private String orderNo;

    /**
     * 设备id
     */
    @Excel(name = "设备id")
    private String deviceId;

    /**
     * 生效日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "生效日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startDate;

    /**
     * 截止日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "截止日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endDate;

    /**
     * 订单信息
     */
    private CloudOrder order;
}
